/**
 * Author:yuiop
 * Date:2022/10/20 10:26
 */
package com.devops.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.devops.admin.model.DOSProjectWebhook;
import com.devops.admin.po.DOSWebhookCustomInfoPo;
import com.devops.admin.po.DOSWebhookInfoPo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DOSProjectWebhookMapper extends BaseMapper<DOSProjectWebhook> {

    /**
     * @Author heyabo
     * @Description 分页查询webhook
     * @Date 11:34 2022/11/16
     * @Param [webhook, page]
     * @return void
     **/
    List<DOSWebhookInfoPo> selectWebhookPage(@Param("param") DOSProjectWebhook webhook, Page<DOSWebhookInfoPo> page);

    /**
     * @Author heyabo
     * @Description //TODO 
     * @Date 08:59 2023/1/9
     * @Param [projectId]
     * @return java.util.List<com.devops.admin.po.DOSWebhookCustomInfoPo>
     **/
    List<DOSWebhookCustomInfoPo> selectWebhookAndCustomList(Integer projectId);
}
